package com.joe.bibackend.e;

public enum ResponseCode {
    //user
    SUCCESS_LOGIN("200","login succeed!"),
    SUCCESS_REGISTER("200","registered successful"),
    REPEATED_REGISTER("401","the user account is already been registered!"),
    FAILED_INFO("402","the request info type is wrong"),
    FAILED("403","DATABASE ISSUE"),
    PASSWORD_NOT_MATCH("405","the password and userAccount not match!"),
    ERROR_USER("408","The user info not found"),
    FREQUENT_ERROR("409","The data is too frequent")
    ;


    ResponseCode(String r, String m){
        this.message = m;
        this.responseCode = r;
    }

    private final String responseCode;

    private final String message;

    public String getResponseCode() {
        return responseCode;
    }

    public String getMessage() {
        return message;
    }
}
